﻿@using Weibo4SharpWeb.Extension;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - Weibo+</title>
    <link href="@Url.ContentWithVer("~/Content/Site.css")" rel="stylesheet" type="text/css" />    
</head>
<body>
    <div class="page">        
        <div id="header">
            <div class="lf">                              
                <a href="/">@((string)ViewBag.WeiboUser.ScreenName)</a>
                <a href="/atme">@@Me</a> <span id="atme-count-wrapper">(<span id="atme-count"></span>)</span>
                <a href="/comment">Comments</a> <span id="comments-count-wrapper">(<span id="comments-count"></span>)</span>
                <a href="/user/fans">Fans</a> <span id="fans-count-wrapper">(<span id="fans-count"></span>)</span>
            </div>
            <div class="rt">               
                @*<a href="/Lab/">Lab</a> <span style="color:Red">(New!)</span>*@
                <a href="/public">Public</a>
            </div>
            <div class="clear-both"></div>
        </div>                             
        <section id="main">            
            @RenderBody()
        </section>
        <footer>
            <div>
                <a href="/home/about">About</a> - <a href="/home/contact">Contact</a>
            </div>
            <div>
                Copyright © 2011 xxfflower Powered by <a href="https://code.google.com/p/weibo4sharp" target="_blank">Weibo4Sharp</a>
            </div>
        </footer>
    </div>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>    
    <script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>
    <script src="@Url.ContentWithVer("~/Scripts/weibo.js")" type="text/javascript"></script>    
    @{
        var scripts = (IList<string>)ViewBag.Scripts;
        if(scripts != null)
        {
            foreach(var script in scripts)
            {
                @:<script src="@Url.ContentWithVer("~/Scripts/" + @script )" type="text/javascript"></script>
            }            
        }
    }
</body>
</html>
